<?php

namespace app\admin\controller;

use app\admin\BaseController;
use app\admin\model\Admin;
use app\admin\model\Answer;
use app\admin\model\Company;
use app\admin\model\Feed;
use app\admin\model\FeedOrg;
use app\admin\model\Item;

use app\admin\model\ItemData;
use app\admin\model\Organization;
use app\admin\model\TargetBase;
use app\admin\model\User;
use app\Request;
use think\db\Query;
use app\admin\model\PlanPactData;
use app\admin\model\ItemInvoice;
use app\admin\model\Need;
use think\facade\Validate;
use app\admin\model\AdminRole;

class PublicController extends BaseController
{

    /*
     * 查询所有角色
     * author xfwed
     * date 2022.03.24 15:39
     * ------------------------------------------
     * update phper  2022-03-24 07:10 将token记入缓存
    */
    public function roleList()
    {
        $list = AdminRole::where('status',1)
            ->select();
        return $this->ajaxReturn(100, '查询成功', $list);
    }



}